package paperockscissors;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;
//this class is supposed to get the players information about what
//he does to play

public class Player{
	private String name;//like the "name" declared in RPSEnum
	private int score;//to save the score
	private List<RPSEnum>action;//to catch what is the player's action
	
	public Player(String Name List<RPSEnum>Action)
	{
		name = playerName;
		action = playerAction
	}
	
	public Player(String playerName)
	{
		//this is supposed to sort randomly the action of the player. The different action are in an arraylist and depending of the case, a number
		//is selected and the action associateed to it is done (rock, paper or scissors
		Random random = new Random();
		name = playerName;
		action = new ArrayList<RPSEnum>();
		for(int i = 0; i<10; i++)
		{
			int r = random.nextInt(3);
			switch(r)
			{
				case 0:
					action.add(RPSEnum PAPER);
					break;
				case 1:
					action.add(RPSEnum ROCK);
					break;
				case 2:
					action.add(RPSEnum SCISSORS);
					break;
			}
		}
	}		
	

	public String getName()//catch which is the player
	{
		return name;
	}
	
	public int getScore()//catch the score of the player
	{
		return score;
	}
	
	public void setScore(int playerScore)//modify the score
	{
		score = playerScore;
	}
	
	